package com.etc.zmall.entity;

/**
 * 用户的实体类
 * 
 * @author
 *
 */
public class User {
	/**
	 * userid 账户序号 username 帐号 userpwd 密码 userphone 电话 userstate 账户状态 0表示异常/1表示正常
	 * address 收货地址
	 */
	private int userid;
	private String username;
	private String userpwd;
	private String userphone;
	private int userstate;
	private String address;
	private String usersex;

	public String getUsersex() {
		return usersex;
	}

	public void setUsersex(String usersex) {
		this.usersex = usersex;
	}

	// 无参构造
	public User() {
		// TODO Auto-generated constructor stub
	}

	/**
	 * userid自增的带参构成
	 * 
	 * @param username  帐号
	 * @param userpwd   密码
	 * @param userphone 电话
	 * @param userstate 账户状态 0表示异常/1表示正常
	 * @param address   收货地址
	 */
	public User(String username, String userpwd, String userphone, int userstate, String address) {
		super();
		this.username = username;
		this.userpwd = userpwd;
		this.userphone = userphone;
		this.userstate = userstate;
		this.address = address;
	}

	/**
	 * 带参构成
	 * 
	 * @param userid    账户序号
	 * @param username  帐号
	 * @param userpwd   密码
	 * @param userphone 电话
	 * @param userstate 账户状态 0表示异常/1表示正常
	 * @param address   收货地址
	 */
	public User(int userid, String username, String userpwd, String userphone, int userstate, String address) {
		super();
		this.userid = userid;
		this.username = username;
		this.userpwd = userpwd;
		this.userphone = userphone;
		this.userstate = userstate;
		this.address = address;
	}

	/**
	 * @return the userid
	 */
	public int getUserid() {
		return userid;
	}

	/**
	 * @param userid the userid to set
	 */
	public void setUserid(int userid) {
		this.userid = userid;
	}

	/**
	 * @return the username
	 */
	public String getUsername() {
		return username;
	}

	/**
	 * @param username the username to set
	 */
	public void setUsername(String username) {
		this.username = username;
	}

	/**
	 * @return the userpwd
	 */
	public String getUserpwd() {
		return userpwd;
	}

	/**
	 * @param userpwd the userpwd to set
	 */
	public void setUserpwd(String userpwd) {
		this.userpwd = userpwd;
	}

	/**
	 * @return the userphone
	 */
	public String getUserphone() {
		return userphone;
	}

	/**
	 * @param userphone the userphone to set
	 */
	public void setUserphone(String userphone) {
		this.userphone = userphone;
	}

	/**
	 * @return the userstate
	 */
	public int getUserstate() {
		return userstate;
	}

	/**
	 * @param userstate the userstate to set
	 */
	public void setUserstate(int userstate) {
		this.userstate = userstate;
	}

	/**
	 * @return the address
	 */
	public String getAddress() {
		return address;
	}

	/**
	 * @param address the address to set
	 */
	public void setAddress(String address) {
		this.address = address;
	}

	@Override
	public String toString() {
		return "用户信息 [用户编号=" + userid + ", 用户名=" + username + ", 用户密码=" + userpwd + ", 用户手机=" + userphone + ", 用户状态="
				+ userstate + ", 用户地址=" + address + "]";
	}

}
